package cat.music.ut.comm.viewutils

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

class MyFragmentStateAdapter(private val mFragment: List<Fragment>, manager: FragmentActivity) :
    FragmentStateAdapter(manager) {
    override fun getItemCount(): Int {
        return mFragment.size
    }

    override fun createFragment(position: Int): Fragment {
        return mFragment.get(position)
    }

}